package com.tiger.cloud.model.crm;

import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.DeleteEnum;
import com.tiger.cloud.enums.UserGender;
import com.tiger.cloud.enums.UserResourceEnum;
import com.tiger.cloud.enums.UserStatusEnum;
/**
 * 
 * crm_user-用户管理
 *
 */
public class User extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 登录账号  手机号
	 */
    private String loginId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 头像
     */
    private String headImage;
    /**
     * 用户名
     */
    private UserGender gender;
    /**
     * 浏览器
     */
    private String browser;
    /**
     * 机器编号
     */
    private String macUid;
    /**
     * jpush通讯Code
     */
    private String jpushCode; 
    /**
	 * 登录账号  手机号
	 */
    @JsonIgnore
    private String loginIdLike;
	/**
	 * 密码
	 */
    @JsonIgnore
    private String password;
	/**
	 * 密码
	 */
    private String qrCode;
	/**
	 * 用户来源 0:注册、1:分享、2:展会等渠道
	 */
    private UserResourceEnum resource;
	/**
	 * 分享码
	 */
    private String shareCode;
	/**
	 * 企业信息
	 */
    private String companyInfo;
	/**
	 * 
	 */
    private String attachmentCompany;
	/**
	 * 是否删除, 0:正常,1:删除
	 */
    @JsonIgnore
    private DeleteEnum isDelete;
	/**
	 * 用户状态  0:待审核、1:正常、2:冻结
	 */
    private UserStatusEnum status;
	/**
	 * 附件  名片
	 */
    private String attachment;
    /**
     * 注册IP
     */
    @JsonIgnore
    private String registerIp;
    /**
     * 最后登录客户端
     */
    @JsonIgnore
    private String lastLoginClient;
	/**
	 * 创建时间
	 */
    @JsonIgnore
    private Timestamp createTime;
	/**
	 * 
	 */
    @JsonIgnore
    private Timestamp lastUpdateTime;
    
    public User(){
    
    }
    
    public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public UserGender getGender() {
		return gender;
	}

	public void setGender(UserGender gender) {
		this.gender = gender;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getMacUid() {
		return macUid;
	}

	public void setMacUid(String macUid) {
		this.macUid = macUid;
	}

	public String getJpushCode() {
		return jpushCode;
	}

	public void setJpushCode(String jpushCode) {
		this.jpushCode = jpushCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginIdLike() {
		return loginIdLike;
	}

	public void setLoginIdLike(String loginIdLike) {
		this.loginIdLike = loginIdLike;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getRegisterIp() {
		return registerIp;
	}

	public void setRegisterIp(String registerIp) {
		this.registerIp = registerIp;
	}

	public String getLastLoginClient() {
		return lastLoginClient;
	}



	public void setLastLoginClient(String lastLoginClient) {
		this.lastLoginClient = lastLoginClient;
	}



	public String getLoginId() {
        return this.loginId;
    }
    
    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    public UserResourceEnum getResource() {
        return this.resource;
    }
    
    public void setResource(UserResourceEnum resource) {
        this.resource = resource;
    }
    public String getShareCode() {
        return this.shareCode;
    }
    
    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }
    public String getCompanyInfo() {
        return this.companyInfo;
    }
    
    public void setCompanyInfo(String companyInfo) {
        this.companyInfo = companyInfo;
    }
    public String getAttachmentCompany() {
        return this.attachmentCompany;
    }
    
    public void setAttachmentCompany(String attachmentCompany) {
        this.attachmentCompany = attachmentCompany;
    }
    public DeleteEnum getIsDelete() {
        return this.isDelete;
    }
    
    public void setIsDelete(DeleteEnum isDelete) {
        this.isDelete = isDelete;
    }
    public UserStatusEnum getStatus() {
        return this.status;
    }
    
    public void setStatus(UserStatusEnum status) {
        this.status = status;
    }
    public String getAttachment() {
        return this.attachment;
    }
    
    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public Timestamp getLastUpdateTime() {
        return this.lastUpdateTime;
    }
    
    public void setLastUpdateTime(Timestamp lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}